﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Masterpage/CommonPage.master" AutoEventWireup="true"
    CodeFile="AddAds.aspx.cs" Inherits="Ad_AddAds" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div class="pagenav">
        <strong>您现在的位置：</strong> 我的管理平台 > <a href="Default.aspx">广告管理</a> > 添加广告</div>
    <div style="overflow: auto;">
        <!--paneltitle-->
        <div class="paneltitle">
            广告信息</div>
        <div class="paneladd">
            <input type="button" class="btn" value=" 返 回 " onclick="javascript:location.href='Default.aspx'" />
        </div>
    </div>
    <div class="dataform">
        <table class="editortable" cellspacing="1">
            <tr class="editortr">
                <th class="editorth" width="20%">
                    <div>
                        广告标题：</div>
                </th>
                <td class="editortd">
                    <asp:TextBox ID="txt_Title" runat="server" CssClass="txtBox" MaxLength="50" Width="300px" />
                    &nbsp;<font color="red">*</font><span id="sp_title_error" runat="server" class="note2"></span>
                </td>
            </tr>
            <tr>
                <th width="20%">
                    <div>
                        开始时间：</div>
                </th>
                <td width="80%">
                    <asp:TextBox ID="txt_BegDate" runat="server" CssClass="txtBox" Width="150px" onclick="JSCalendar(this)" />&nbsp;<font
                        color="red">*</font><span id="txt_BgnDate_error" class="note2" runat="server"></span>
                </td>
            </tr>
            <tr>
                <th>
                    <div>
                        结束时间：</div>
                </th>
                <td>
                    <asp:TextBox ID="txt_EndDate" runat="server" CssClass="txtBox" Width="150px" onclick="JSCalendar(this)" />&nbsp;<font
                        color="red">*</font><span id="txt_EndDate_error" class="note2" runat="server"></span>
                </td>
            </tr>
            <tr class="editortr">
                <th class="editorth">
                    <div>
                        版块：</div>
                </th>
                <td class="editortd">
                    <asp:DropDownList ID="ddlPosition" runat="server" Width="200px">
                        <asp:ListItem Value="0">首页</asp:ListItem>
                    </asp:DropDownList>
                </td>
            </tr>
            <tr class="editortr">
                <th class="editorth">
                    <div>
                        链接：</div>
                </th>
                <td class="editortd">
                    <asp:TextBox ID="txt_url" runat="server" CssClass="txtBox"  Width="300px" />
                </td>
            </tr>
            <tr class="editortr">
                <th class="editorth">
                    <div>
                        位置：</div>
                </th>
                <td class="editortd">
                    <asp:DropDownList ID="ddlVesion" runat="server" Width="200px">
                        <asp:ListItem Value="0">慈溪1</asp:ListItem>
                        <asp:ListItem Value="1">慈溪2</asp:ListItem>
                        <asp:ListItem Value="2">慈溪3</asp:ListItem>
                        <asp:ListItem Value="3">慈溪4</asp:ListItem>
                        <asp:ListItem Value="4">慈溪5</asp:ListItem>
                        
                        <asp:ListItem Value="10">巴马1</asp:ListItem>
                        <asp:ListItem Value="11">巴马2</asp:ListItem>
                        <asp:ListItem Value="12">巴马3</asp:ListItem>
                        <asp:ListItem Value="13">巴马4</asp:ListItem>
                        <asp:ListItem Value="14">巴马5</asp:ListItem>
                    </asp:DropDownList>
                </td>
            </tr>
            <tr class="editortr">
                <th class="editorth">
                    <div>
                        是否可见：</div>
                </th>
                <td class="editortd">
                    <asp:CheckBox ID="chkVisble" runat="server" />
                </td>
            </tr>
            <tr class="editortr">
                <th class="editorth">
                    <div>
                        图片：</div>
                </th>
                <td class="editortd">
                   
                    <input id="File1" type="file" contenteditable="false" runat="server" /><asp:Literal
                        ID="lt_tip" runat="server" Text="<font color='#999999'>[图片格式必须为.jpg,.jpeg,.png,.gif]</font>" />
                </td>
            </tr>
            <tr class="editortr">
                <th class="editorth">
                    <div>
                    </div>
                </th>
                <td class="editortd">
                    <asp:Button ID="btn_UP" CssClass="btn" runat="server" OnClick="DoAdd" Text="确认添加" />
                </td>
            </tr>
        </table>
    </div>
</asp:Content>
